package com.simons.common.exception;

import lombok.Getter;
import lombok.Setter;

public class CommonException extends Exception {
	private static final long serialVersionUID = -13739115638364577L;
	
	@Getter
	private ErrorType errorType;
	
	@Getter @Setter
	private String extendMsg;

	public CommonException(ErrorType errorType) {
		super(errorType.toString());
		this.errorType = errorType;
	}
	
	public CommonException(ErrorType errorType, String extendMsg) {
		super(errorType.toString());
		this.errorType = errorType;
		this.extendMsg = extendMsg;
	}

}
